package org.study.springboot.model.sftp;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class UploadInfoBO {

    public static void main(String[] args) {
        String startTime = "2022-07-15 00:00:00.000";
        String endTime = "2022-08-10 00:00:00.000";
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS");
        LocalDateTime startTimeParse = LocalDateTime.parse(startTime, dateTimeFormatter);
        LocalDateTime endTimeParse = LocalDateTime.parse(endTime, dateTimeFormatter);

        LocalDateTime localDateTime = startTimeParse.plusDays(30);

        if (endTimeParse.isAfter(localDateTime)) {
            System.out.println(endTimeParse);
        }

    }

}
